﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cofe.Core.Utils;

namespace Cofe.Core
{
    /// <summary>
    /// Define a user friendly name for GetSupportedProperty/ActionString().  
    /// Also used by EnumUtils.GetResourceName().
    /// </summary>
    public class AliasAttribute : Attribute
    {
        public AliasAttribute(string alias)
        {
            Alias = alias;
            FullQualifiedName = false;
        }

        public AliasAttribute(bool fullQualifiedName)
        {
            Alias = null;
            FullQualifiedName = fullQualifiedName;
        }
       
        /// <summary>
        /// Use FullQualifiedName? e.g. "FileProperties.Length"
        /// </summary>
        public bool FullQualifiedName { get; private set; }

        public string Alias { get; private set; }
    }

  
}
